/*交流讨论社区模块接口*/
import request from "@/utils/request";

//根据帖子id删除帖子
export function deletePost(data){
    return request({
        url:'/post/deletePost',
        method:'post',
        data
    })
}

//根据帖子评论id删除该评论
export function deletePostComment(data){
    return request({
        url:'/post/deletePostComment',
        method:'post',
        data
    })
}

//修改帖子评论
export function updatePostComment(data){
    return request({
        url:'/post/updatePostComment',
        method:'post',
        data
    })
}

//获取全部帖子信息
export function getAllPostInfoByAdmin(){
    return request({
        url:'/post/getAllPostInfoByAdmin',
        method:'post',
    })
}

//修改帖子审核情况
export function updateCheckByPostId(data){
    return request({
        url:'/post/updateCheckByPostId',
        method:'post',
        data
    })
}

//修改帖子信息
export function updatePost(data){
    return request({
        url:'/post/updatePost',
        method:'post',
        data
    })
}

//获取全部帖子评论
export function getAllPostComment(){
    return request({
        url:'/post/getAllPostComment',
        method:'post',
    })
}

//计算帖子数量
export function getPostCnt(){
    return request({
        url:'/post/getPostCnt',
        method:'post',
    })
}
